package com.kingyun.gpsinspection.purificationservice.facade.model.tdm;

import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 任务发起
 * Created by sugongche on 2016/12/19.
 */
public class Task extends BootstrapSearchBean implements Serializable {
    private String id;//任务主键id
    private Short taskType;//任务类型
    private String taskName;//任务名称
    private String taskContent;//任务内容
    private Date planStartTime;//计划开始时间
    private Date planEndTime;//计划完成时间
    private String flowId;//流程实例ID
    private String userName;//任务创建人
    private Date createTime;//创建时间
    private Date finishTime;//实际完成时间
    private Short isPeriodicTask; //是否周期任务
    private String remark;//任务备注
    private Short node;//节点
    private Short isEnable;//是否启用
    private Short auditStatus;//审核状态
    private Short taskStatus;//任务状态
    private Short isDelete;//是否删除
    private String parentId;//主任务Id
    private Date closeTime; //终止时间
    private Date sortTime; //排序时间
    private Long periodValue; //周期值
    private String periodUnit; //周期单位
    private Date validityStartTime; //周期开始时间
    private Date validityEndTime; //周期结束时间
    private List<WorkOrderVo> workOrderList; //工单


    /*过滤当前用户的相关任务*/
    private String userId;//处置人
    private String historyDisposeName;//历史处置人
    private String currentDisposeName;//当前处置人
    private String createName;//创建人
    private String createUserId;//创建人ID
    private String taskTypeName;//任务类型名称

    /*查询关联任务*/
    private String planId;//生产计划id
    private String commandId;//生产指令id
    private String workInstanceId;//一站一案和操作单元主键ID
    private String planName;
    private String commandName;
    private String workInstanceName;
    private String problemId;//问题id
    private String hazardId;//危害因素id

    private String orgId;//组织id
    private String orgName;//组织名称

    /*页面高级查询创建日期查询范围*/
    private Date createTimeBegin;//创建日期开始时间
    private Date createTimeEnd;//创建日期结束时间
    private Date planStartTimeBegin;//计划开始日期开始
    private Date planStartTimeEnd;//计划结束日期结束
    private Date planEndTimeBegin;//计划完成日期开始
    private Date planEndTimeEnd;//计划完成日期结束
    private String taskLinkName;//当前任务环节名称

    /*待办任务查询条件*/
    private String piId;//流程实例ID
    private String tkiId;//待办任务ID
    private String piName;//流程类型
    private String originator;//流程发起人
    private String roleName;//待办任务执行人角色
    private String name;//待办任务名称
    private String snapshotName;//流程版本名称

    //统计报表用
    private List<String> orgIds;//组织id

    /*根据当前人和当前人组织过滤*/
    //当前人ID
    private String filterEmployeeId;
    //当前人所属组织ID
    private String filterOrgId;
    //tasklink最新一次时间
    private Date executeTime;
    //第几次子任务
    private Integer cycle;
    //周期任务是否完成:0没有,1完成
    private Integer isUsed;

    public Integer getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(Integer isUsed) {
        this.isUsed = isUsed;
    }

    public Integer getCycle() {
        return cycle;
    }

    public void setCycle(Integer cycle) {
        this.cycle = cycle;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Short getTaskType() {
        return taskType;
    }

    public void setTaskType(Short taskType) {
        this.taskType = taskType;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskContent() {
        return taskContent;
    }

    public void setTaskContent(String taskContent) {
        this.taskContent = taskContent;
    }

    public Date getPlanStartTime() {
        return planStartTime;
    }

    public void setPlanStartTime(Date planStartTime) {
        this.planStartTime = planStartTime;
    }

    public Date getPlanEndTime() {
        return planEndTime;
    }

    public void setPlanEndTime(Date planEndTime) {
        this.planEndTime = planEndTime;
    }

    public String getFlowId() {
        return flowId;
    }

    public void setFlowId(String flowId) {
        this.flowId = flowId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public Short getIsPeriodicTask() {
        return isPeriodicTask;
    }

    public void setIsPeriodicTask(Short isPeriodicTask) {
        this.isPeriodicTask = isPeriodicTask;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Short getNode() {
        return node;
    }

    public void setNode(Short node) {
        this.node = node;
    }

    public Short getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(Short isEnable) {
        this.isEnable = isEnable;
    }

    public Short getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(Short auditStatus) {
        this.auditStatus = auditStatus;
    }

    public Short getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(Short taskStatus) {
        this.taskStatus = taskStatus;
    }

    public Short getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Short isDelete) {
        this.isDelete = isDelete;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Date getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(Date closeTime) {
        this.closeTime = closeTime;
    }

    public Date getSortTime() {
        return sortTime;
    }

    public void setSortTime(Date sortTime) {
        this.sortTime = sortTime;
    }

    public Long getPeriodValue() {
        return periodValue;
    }

    public void setPeriodValue(Long periodValue) {
        this.periodValue = periodValue;
    }

    public String getPeriodUnit() {
        return periodUnit;
    }

    public void setPeriodUnit(String periodUnit) {
        this.periodUnit = periodUnit;
    }

    public Date getValidityStartTime() {
        return validityStartTime;
    }

    public void setValidityStartTime(Date validityStartTime) {
        this.validityStartTime = validityStartTime;
    }

    public Date getValidityEndTime() {
        return validityEndTime;
    }

    public void setValidityEndTime(Date validityEndTime) {
        this.validityEndTime = validityEndTime;
    }

    public List<WorkOrderVo> getWorkOrderList() {
        return workOrderList;
    }

    public void setWorkOrderList(List<WorkOrderVo> workOrderList) {
        this.workOrderList = workOrderList;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getHistoryDisposeName() {
        return historyDisposeName;
    }

    public void setHistoryDisposeName(String historyDisposeName) {
        this.historyDisposeName = historyDisposeName;
    }

    public String getCurrentDisposeName() {
        return currentDisposeName;
    }

    public void setCurrentDisposeName(String currentDisposeName) {
        this.currentDisposeName = currentDisposeName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getTaskTypeName() {
        return taskTypeName;
    }

    public void setTaskTypeName(String taskTypeName) {
        this.taskTypeName = taskTypeName;
    }

    public String getPlanId() {
        return planId;
    }

    public void setPlanId(String planId) {
        this.planId = planId;
    }

    public String getCommandId() {
        return commandId;
    }

    public void setCommandId(String commandId) {
        this.commandId = commandId;
    }

    public String getWorkInstanceId() {
        return workInstanceId;
    }

    public void setWorkInstanceId(String workInstanceId) {
        this.workInstanceId = workInstanceId;
    }

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName;
    }

    public String getCommandName() {
        return commandName;
    }

    public void setCommandName(String commandName) {
        this.commandName = commandName;
    }

    public String getWorkInstanceName() {
        return workInstanceName;
    }

    public void setWorkInstanceName(String workInstanceName) {
        this.workInstanceName = workInstanceName;
    }

    public String getProblemId() {
        return problemId;
    }

    public void setProblemId(String problemId) {
        this.problemId = problemId;
    }

    public String getHazardId() {
        return hazardId;
    }

    public void setHazardId(String hazardId) {
        this.hazardId = hazardId;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Date getCreateTimeBegin() {
        return createTimeBegin;
    }

    public void setCreateTimeBegin(Date createTimeBegin) {
        this.createTimeBegin = createTimeBegin;
    }

    public Date getCreateTimeEnd() {
        return createTimeEnd;
    }

    public void setCreateTimeEnd(Date createTimeEnd) {
        this.createTimeEnd = createTimeEnd;
    }

    public Date getPlanStartTimeBegin() {
        return planStartTimeBegin;
    }

    public void setPlanStartTimeBegin(Date planStartTimeBegin) {
        this.planStartTimeBegin = planStartTimeBegin;
    }

    public Date getPlanStartTimeEnd() {
        return planStartTimeEnd;
    }

    public void setPlanStartTimeEnd(Date planStartTimeEnd) {
        this.planStartTimeEnd = planStartTimeEnd;
    }

    public Date getPlanEndTimeBegin() {
        return planEndTimeBegin;
    }

    public void setPlanEndTimeBegin(Date planEndTimeBegin) {
        this.planEndTimeBegin = planEndTimeBegin;
    }

    public Date getPlanEndTimeEnd() {
        return planEndTimeEnd;
    }

    public void setPlanEndTimeEnd(Date planEndTimeEnd) {
        this.planEndTimeEnd = planEndTimeEnd;
    }

    public String getTaskLinkName() {
        return taskLinkName;
    }

    public void setTaskLinkName(String taskLinkName) {
        this.taskLinkName = taskLinkName;
    }

    public String getPiId() {
        return piId;
    }

    public void setPiId(String piId) {
        this.piId = piId;
    }

    public String getTkiId() {
        return tkiId;
    }

    public void setTkiId(String tkiId) {
        this.tkiId = tkiId;
    }

    public String getPiName() {
        return piName;
    }

    public void setPiName(String piName) {
        this.piName = piName;
    }

    public String getOriginator() {
        return originator;
    }

    public void setOriginator(String originator) {
        this.originator = originator;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSnapshotName() {
        return snapshotName;
    }

    public void setSnapshotName(String snapshotName) {
        this.snapshotName = snapshotName;
    }

    public List<String> getOrgIds() {
        return orgIds;
    }

    public void setOrgIds(List<String> orgIds) {
        this.orgIds = orgIds;
    }

    public String getFilterEmployeeId() {
        return filterEmployeeId;
    }

    public void setFilterEmployeeId(String filterEmployeeId) {
        this.filterEmployeeId = filterEmployeeId;
    }

    public String getFilterOrgId() {
        return filterOrgId;
    }

    public void setFilterOrgId(String filterOrgId) {
        this.filterOrgId = filterOrgId;
    }

    public Date getExecuteTime() {
        return executeTime;
    }

    public void setExecuteTime(Date executeTime) {
        this.executeTime = executeTime;
    }
}
